package osx.mantianx.dao;

import org.apache.ibatis.annotations.Param;
import osx.mantianx.pojo.User;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author starrysky
 * @title: UserMapper
 * @projectName spring5_Transaction
 * @description: TODO
 * @date 2021/2/322:59
 */
public interface UserMapper {
    /**
     * 查询所有用户
     * @return
     */
    CopyOnWriteArrayList<User> selectUser();

    /**
     * 插入用户
     * @return
     */
    int insertUser(User user);

    /**
     * 删除用户
     * @return
     */
    int deleteUser(@Param("id") Long id);

}
